package com.xinhe.web.reposity;

import com.xinhe.web.entity.OrderReturn;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface OrderReturnRepository  extends JpaRepository<OrderReturn, Long> {
    @Query(value = "select * from tb_order_return where removed = 0 and f_order_item_id = ?1 and status = ?2", nativeQuery = true)
    OrderReturn findByOrderItemIdAndStatus(Long id, String doing);
}
